<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="b" uri="/WEB-INF/tld/blank.tld" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<script type="text/javascript" src="/js/area-select.js"></script>
<script type="text/javascript">
	$(function() {
		$("#scene-dialog-btn").click(function() {
			$("#distributor-table-div").load("/distributor/page.htm", {
				name:$("#distributor-name").val(),
				adm_div_id:$("#distributor-area").val()
			})
		})
	})
</script>
<div class="box-content">
	<form class="form-inline">
	    <div class="form-group">
	        <label>分销商名称：</label>
	        <input id="distributor-name" type="text" class="form-control">
	    </div>
	    <div class="clearfix"></div><br>
	    <div class="form-group col-md-8">
	        <label>所属地区：</label>
	        <select class="area-select form-control">
	       	<option value="">--请选择--</option>
		       	<c:forEach items="${provinces }" var="province">
		       		<option value="${province.admDivId }">${province.name }</option>
		       	</c:forEach>
	        </select>
	        <select class="area-select form-control">
            	<option value="">--请选择--</option>
            </select>
            <select class="area-select form-control" id="distributor-area">
            	<option value="">--请选择--</option>
            </select>
	    </div>
		<div class="form-group">
			<a href="javascript:;" class="btn btn-default" id="scene-dialog-btn">查询</a>
		</div>
    </form>
</div>
<div class="box-content" id="distributor-table-div">
	<jsp:include page="dialog_table.jsp"/>
</div>